<template>
    <div id="footers">
        <div class="goTop" v-on:click="goTop()"></div>
    </div>
</template>
<script>
export default {
  name: 'footers',
  methods: {
    goTop: function () {
      scrollTo(0, 0)
    }
  }
}
</script>
<style scoped>
  #footers {
    height: 100px;
    width: 100%;
    margin: auto;
    background-color: black;
    clear: both;
  }

  .goTop {
    background: url(../../assets/goTop.png) repeat;
    background-size: 100% 100%;
    height: 3rem;
    width: 3rem;
    position: fixed;
    bottom: 110px;
    right: 20px;
    cursor: pointer;
  }
</style>
